/**
 * 
 */
package entity;

import java.util.Date;

/**
 * @author Chen Lei
 *
 */
public class Comment {

	private int comment_id;
	private int article_id;
	private int user_id;
	private Date comment_time;
	private int comment_zan_num;
	private String comment_content;
	private String user_name;
	
	/**
	 * 
	 */
	public Comment() {
		super();
		
	}
	/**
	 * @param comment_id
	 * @param article_id
	 * @param user_id
	 * @param comment_time
	 * @param comment_zan_num
	 */
	public Comment(int comment_id, int article_id, int user_id,Date comment_time,
			int comment_zan_num) {
		super();
		this.comment_id = comment_id;
		this.article_id = article_id;
		this.user_id = user_id;

		this.comment_time = comment_time;
		this.comment_zan_num = comment_zan_num;
	}
	
	/**
	 * @param comment_id
	 * @param article_id
	 * @param user_id
	 * @param comment_time
	 * @param comment_zan_num
	 * @param comment_content
	 */
	public Comment(int comment_id, int article_id, int user_id, Date comment_time, int comment_zan_num,
			String comment_content) {
		super();
		this.comment_id = comment_id;
		this.article_id = article_id;
		this.user_id = user_id;
		this.comment_time = comment_time;
		this.comment_zan_num = comment_zan_num;
		this.comment_content = comment_content;
	}
	
	
	/**
	 * @param comment_id
	 * @param article_id
	 * @param user_id
	 * @param comment_content
	 */
	public Comment( int article_id, int user_id, String comment_content) {
		super();
		this.article_id = article_id;
		this.user_id = user_id;
		this.comment_content = comment_content;
	}
	/**
	 * @return the comment_id
	 */
	public int getComment_id() {
		return comment_id;
	}
	/**
	 * @param comment_id the comment_id to set
	 */
	public void setComment_id(int comment_id) {
		this.comment_id = comment_id;
	}
	/**
	 * @return the article_id
	 */
	public int getArticle_id() {
		return article_id;
	}
	/**
	 * @param article_id the article_id to set
	 */
	public void setArticle_id(int article_id) {
		this.article_id = article_id;
	}
	/**
	 * @return the user_id
	 */
	public int getUser_id() {
		return user_id;
	}
	/**
	 * @param user_id the user_id to set
	 */
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}


	/**
	 * @return the comment_time
	 */
	public Date getComment_time() {
		return comment_time;
	}
	/**
	 * @param comment_time the comment_time to set
	 */
	public void setComment_time(Date comment_time) {
		this.comment_time = comment_time;
	}
	/**
	 * @return the comment_zan_num
	 */
	public int getComment_zan_num() {
		return comment_zan_num;
	}
	/**
	 * @param comment_zan_num the comment_zan_num to set
	 */
	public void setComment_zan_num(int comment_zan_num) {
		this.comment_zan_num = comment_zan_num;
	}
	/**
	 * @return the comment_content
	 */
	public String getComment_content() {
		return comment_content;
	}
	/**
	 * @param comment_content the comment_content to set
	 */
	public void setComment_content(String comment_content) {
		this.comment_content = comment_content;
	}
	/**
	 * @return the user_name
	 */
	public String getUser_name() {
		return user_name;
	}
	/**
	 * @param user_name the user_name to set
	 */
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Comment [comment_id=" + comment_id + ", article_id=" + article_id + ", user_id=" + user_id
				+ ", comment_time=" + comment_time + ", comment_zan_num=" + comment_zan_num + ", comment_content="
				+ comment_content + ", user_name=" + user_name + "]";
	}
	
	
}
